import request from '@/utils/request'

// 查询 列表
export function listSeat(query) {
  return request({
    url: '/system/seat/list',
    method: 'get',
    params: query
  })
}
export function allList(query) {
  return request({
    url: '/system/seat/allList',
    method: 'get',
    params: query
  })
}

// 查询 详细
export function getSeat(id) {
  return request({
    url: '/system/seat/' + id,
    method: 'get'
  })
}

// 新增
export function addSeat(data) {
  return request({
    url: '/system/seat',
    method: 'post',
    data: data
  })
}

// 修改
export function updateSeat(data) {
  return request({
    url: '/system/seat',
    method: 'put',
    data: data
  })
}

// 删除
export function delSeat(id) {
  return request({
    url: '/system/seat/' + id,
    method: 'delete'
  })
}
// 选择部门
export function selectSeat() {
  return request({
    url: '/system/seat/selectid',
    method: 'get'
  })
}

// 选择部门 seat
export function seatList() {
  return request({
    url: '/system/seat/seatList',
    method: 'get'
  })
}
